From: kaf24@firebug.cl.cam.ac.uk Date: Tue, 30 May 2006 11:28:46 +0000 (+0100) Subject: [BALLOON] Remove the static lower bound on memory target from balloon driver. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16013^2~22 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a3b519a9b55b19f3d7335915370e0b1ba5569988;p=xen.git [BALLOON] Remove the static lower bound on memory target from balloon driver. Experimentation an discussion on xen-devel concludes that a dynamic method for determining safe balloon size will be required. Signed-off-by: Keir Fraser --- diff --git a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c index a1c2ea9d55..b4ef5c1646 100644 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c @@ -360,12 +360,6 @@ static void balloon_process(void *unused) /* Resets the Xen limit, sets new target, and kicks off processing. */ static void set_new_target(unsigned long target) { - unsigned long min_target; - - /* Do not allow target to reduce below 2% of maximum memory size. */ - min_target = max_pfn / 50; - target = max(target, min_target); - /* No need for lock. Not read-modify-write updates. */ hard_limit = ~0UL; target_pages = target;